using System;
using System.Collections.Generic;
using System.Text;
namespace Decision.BusinessLayer
{
	public class DCS_VOTE_TYPE
	{

		#region InnerClass
		public enum DCS_VOTE_TYPEFields
		{
			VOTE_TYPE_ID,
			VOTE_NAME
		}
		#endregion

		#region Data Members

			int _vOTE_TYPE_ID;
			string _vOTE_NAME;

		#endregion

		#region Properties

		public int  VOTE_TYPE_ID
		{
			 get { return _vOTE_TYPE_ID; }
			 set
			 {
				 if (_vOTE_TYPE_ID != value)
				 {
					_vOTE_TYPE_ID = value;
					 PropertyHasChanged("VOTE_TYPE_ID");
				 }
			 }
		}

		public string  VOTE_NAME
		{
			 get { return _vOTE_NAME; }
			 set
			 {
				 if (_vOTE_NAME != value)
				 {
					_vOTE_NAME = value;
					 PropertyHasChanged("VOTE_NAME");
				 }
			 }
		}


		#endregion

		#region not support PropertyChangeEvent

		protected virtual void PropertyHasChanged(string propertyName)
		{
			return;
		}

		#endregion
/********** not support Validation
		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("VOTE_TYPE_ID", "VOTE_TYPE_ID"));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("VOTE_NAME", "VOTE_NAME",2147483647));
		}

		#endregion
********/

	}
}
